Make /etc a writable mount
authorColin Walters <walters@verbum.org>
Fri, 22 Jun 2012 22:41:59 +0000 (18:41 -0400)
committerColin Walters <walters@verbum.org>
Thu, 6 Sep 2012 12:17:23 +0000 (08:17 -0400)
commit2ddbeb1f7159f87b62bc46664ddca55a63319b75
tree60a677bcd2ea0e8d16054c10a298552ac35181c8
parent9ba968a5f41e99e6a38d6ba1f1e177de39a3b447
Make /etc a writable mount

First, move deployments to /ostree/deploy.  Having them in the
toplevel clutters the filesystem layout too much.

When we deploy a tree like /ostree/deploy/NAME, there is now also a
writable directory /ostree/deploy/NAME-etc.  This is mounted as
read-write inside the system.

On an initial install, that directory is copied from
/ostree/deploy/NAME/etc.  On subsequent deployments, we find any
changes made in the current deployment's /etc, and apply that set of
changes to the new deployment's /etc.

See https://live.gnome.org/OSTree/EverythingInEtcIsABug
13 files changed:
Makefile-ostadmin.am
src/libostree/ostree-diff.c
src/ostadmin/main.c
src/ostadmin/ot-admin-builtin-deploy.c
src/ostadmin/ot-admin-builtin-diff.c [new file with mode: 0644]
src/ostadmin/ot-admin-builtin-init.c
src/ostadmin/ot-admin-builtin-update-kernel.c
src/ostadmin/ot-admin-builtins.h
src/ostadmin/ot-admin-functions.c [new file with mode: 0644]
src/ostadmin/ot-admin-functions.h [new file with mode: 0644]
src/ostree/ot-builtin-checkout.c
src/ostree/ot-builtin-diff.c
src/switchroot/ostree-switch-root.c